#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h> 
struct birthday
{
int year; int month; int day;
};
struct student
{
	int num;
	char name[10]; char sex[5]; int age;
	struct birthday date;
};
int main()
{
	struct student stu[30];
	int i = 0;
	printf("num,name,sex,age,year,mon,day:");
	for (i = 0;i < 2;i++)
		scanf("%d%s%s%d%d%d%d", &stu[i].num, stu[i].name, stu[i].sex, &stu[i].age, &stu[i].date.year, &stu[i].date.month, &stu[i].date.day); 
	for (i = 0;i < 2;i++)
		printf("num=%d,name=%s,sex=%s,age=%d,year=%d,mon=%d,day=%d\n", stu[i].num, stu[i].name, stu[i].sex, stu[i].age, stu[i].date.year, stu[i].date.month, stu[i].date.day);
	return 0;
}